﻿using DotNet.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MyInspiration.Controllers
{
    public class MailController : Controller
    {
        //
        // GET: /Mail/

        public ActionResult Index()
        {
            MailSender m = new MailSender();
            /// </summary> 

            /// <param name="from">发送人邮件地址</param> 

            /// <param name="fromname">发送人显示名称</param> 

            /// <param name="to">发送给谁（邮件地址）</param> 

            /// <param name="subject">标题</param> 

            /// <param name="body">内容</param> 

            /// <param name="username">邮件登录名</param> 

            /// <param name="password">邮件密码</param> 

            /// <param name="server">邮件服务器</param> 

            /// <param name="fujian">附件</param> 

            /// <returns>send ok</returns> 

            string returnValue = m.SendMail("admin@haoidea.wang", "高哥", "112346533@qq.com", "睡你妈逼,起来嗨", "我测试下邮件", "admin@haoidea.wang", "hao2015idea..", "smtp.ym.163.com", ""); 

            return View();
        }

    }
}
